package com.jkl.service.bsWorkflow;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.jkl.dao.bsWorkflow.BsWorkflowMapper;
import com.jkl.entity.bsWorkflow.BsWorkflow;
import com.jkl.service.bsWorkflow.inter.BsWorkflowServiceInterface;

import lombok.extern.slf4j.Slf4j;

@Service
@Slf4j
public class BsWorkflowService implements BsWorkflowServiceInterface {

	@Autowired
	private BsWorkflowMapper bsWorkflowMapper;

	@Override
	public List<BsWorkflow> parentNodeCode(BsWorkflow bsWorkflow) {
		List<BsWorkflow> list = bsWorkflowMapper.parentNodeCode(bsWorkflow);
		if (list != null) {
			return list;
		} else {
			return null;
		}
	}

	@Override
	public List<BsWorkflow> getWorkflowList() {
		return bsWorkflowMapper.getWorkflowList();
	}

}
